package com.tpsix.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tpsix.domain.SysDept;
import com.tpsix.dto.DataScope;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysDeptMapper extends BaseMapper<SysDept> {

    @Select("SELECT id, id as deptId, `name`, sort, create_time, update_time, deleted, parent_id, tenant_id FROM sys_dept ")
    List<SysDept> dataScopeList(DataScope dataScope);
}